/* @(#)GSManufactureCategoryScanAction.java    V0.1
 *
 * Project: GSdevelop
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   owen         2006-2-28
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.ArrayList;

import com.hitrust.gs.business.GSManufactureCategoryProcessor;
import com.hitrust.gs.business.GSManufactureProcessor;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.lib.GSLogWriter;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.util.exception.GSException;

/**
 * 产品种类查询界面
 */
public class GSManufactureCategoryScanAction extends GSBaseAction{

    public String execute(GSBaseForm aForm) throws Exception {
        ArrayList tArrayList=GSManufactureCategoryProcessor.queryManageCategoryLevel();
        aForm.getRequest().setAttribute("CategoryLevel",tArrayList);
        //GSManufactureProcessor tGSManufProcessor = new GSManufactureProcessor();
        try{
//          种类等级
            GSManufactureProcessor tGSManufProcessor = new GSManufactureProcessor();
            tGSManufProcessor.getManufactureOfLevel(aForm);
            aForm.getRequest().setAttribute("requery","false");
            
//			取得最大产品编号
			//String tGSMfID =GSManufactureCategoryProcessor.getMaxProviderId();
			//取消最大产品编号
			aForm.getRequest().setAttribute("MaxMfID","");
        }catch(GSException e){
            throw e;
        }catch(Exception e){
            GSLogWriter.error(this,e.toString());
            throw new GSException("进入产品浏览首页面发生异常");
        }
        return GSBaseConstants.FORWARD_SUCCESS;
    }

}
